package ie.timalb.chess;

public class MovementCompare 
{
	Location sourceLocation;
	Location destinyLocation;
	
	int deltaX;
	int deltaY;

	public MovementCompare(Location sourceLocation, Location destinyLocation) {
		setSourceLocation(sourceLocation);
		setDestinyLocation(destinyLocation);
		
		setDeltaY(getDestinyLocation().getYCoordinate()-getSourceLocation().getYCoordinate());
		setDeltaX(getDestinyLocation().getXCoordinate()-getSourceLocation().getXCoordinate());
	}

	public Location getSourceLocation() {
		return sourceLocation;
	}

	public void setSourceLocation(Location sourceLocation) {
		this.sourceLocation = sourceLocation;
	}

	public Location getDestinyLocation() {
		return destinyLocation;
	}

	public void setDestinyLocation(Location destinyLocation) {
		this.destinyLocation = destinyLocation;
	}

	public int getDeltaX() {
		return deltaX;
	}

	public void setDeltaX(int deltaX) {
		this.deltaX = deltaX;
	}

	public int getDeltaY() {
		return deltaY;
	}

	public void setDeltaY(int deltaY) {
		this.deltaY = deltaY;
	}

}
